package com.csun.cmny.provider.service;

import com.csun.cmny.base.dto.LoginAuthDto;
import com.csun.cmny.core.support.IService;
import com.csun.cmny.provider.model.domain.DmcFollowDataTemperature;
import com.csun.cmny.provider.model.dto.follow.FollowDataPageQuery;
import com.csun.cmny.provider.model.dto.follow.UpFollowDataTemperatureDto;
import com.github.pagehelper.PageInfo;
import org.apache.ibatis.annotations.Param;

import java.util.Map;

/**
 * @Auther: chisj chisj@foxmal.com
 * @Date: 2019-01-16 21:37
 * @Description: the dmc follow data teperature service
 */
public interface DmcFollowDataTemperatureService extends IService<DmcFollowDataTemperature> {

    /**
     * query dmc follow data temperature list with page
     *
     * @param followDataPageQuery follow data query page
     *
     * @return  the page info
     */
    PageInfo queryDmcFollowDataTemperatureListWithPage(FollowDataPageQuery followDataPageQuery);

    /**
     * up follow data temperature
     *
     * @param upFollowDataTemperatureDto    up follow data temperature dto
     * @param loginAuthDto                  login auth dto
     *
     * @return  the int.
     */
    Integer upFollowDataTemperature(UpFollowDataTemperatureDto upFollowDataTemperatureDto, LoginAuthDto loginAuthDto);
    /**
     * @description: TODO
     * @param: oldmanId 老人ID
     * @return: 老人设备最新一次数据
     * @throws
     * @author huangxm
     * @date 2019/3/15 11:58
     */
    Map<String,Object> getRecentData(@Param("oldmanId")Integer oldmanId);

    PageInfo queryDmcFollowDataTemperatureListWithPages(FollowDataPageQuery followDataPageQuery);
}
